cmake_minimum_required(VERSION 3.10)
project(HelloCmake)

# 指定C++标准
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 添加Unicode字符集支持
add_definitions(-D_UNICODE -DUNICODE)

# 设置输出目录
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/x64)

# 添加可执行文件
add_executable(HelloCmake WIN32 src/main.cpp)

# 链接Windows库
target_link_libraries(HelloCmake user32) 